import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SGroupInvite
    
    export  class SGroupInvite extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGroupInvite();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.player.__write(arg1);
            arg1.writeString(this.certId);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.player = new SPublicMiniPlayer();
            this.player.__read(arg1);
            this.certId = arg1.readString();
            return;
        }

        public /* const */_type: int=20401;

        public /* var */player: SPublicMiniPlayer;

        public /* var */certId: string;

        public static /* var */_regist: SGroupInvite;
    }

            SGroupInvite._regist = new SGroupInvite(true);
        